package com.hyk.Dao;

import org.springframework.stereotype.Repository;

@Repository
public class UserDao {

    private final String UserName = "hyk";

    private final String PassWord = "123456";

    public User selectByUsername(String userName){
        User user = null;

        if (!UserName.equals(userName)){
            return null;
        }

        user = new User();
        user.setUserName(UserName);
        user.setPassWord(PassWord);
        return user;
    }

}
